package com.pp.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品详情图
 * </p>
 *
 * @author 张子艺
 * @since 2019-04-02
 */
@ApiModel(value="GovGoodsImage对象", description="商品详情图")
public class GovGoodsImage extends Model<GovGoodsImage> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "商品图片URL")
    @TableField("image_url")
    private String imageUrl;

    @ApiModelProperty(value = "中英文 1 中 2 英文")
    @TableField("lang")
    private Integer lang;

    @ApiModelProperty(value = "高")
    @TableField("height")
    private Integer height;

    @ApiModelProperty(value = "宽")
    @TableField("width")
    private Integer width;

    @ApiModelProperty(value = "类型 1 轮播图 2 详情图")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "关联ID")
    @TableField("relacation_id")
    private Long relacationId;

    @ApiModelProperty(value = "位置 1 2 3 4 5 6 7 ")
    @TableField("localtion")
    private Integer localtion;

    public Integer getLocaltion() {
        return localtion;
    }

    public void setLocaltion(Integer localtion) {
        this.localtion = localtion;
    }

    public Long getRelacationId() {
        return relacationId;
    }

    public void setRelacationId(Long relacationId) {
        this.relacationId = relacationId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }
    public Integer getLang() {
        return lang;
    }

    public void setLang(Integer lang) {
        this.lang = lang;
    }
    public Integer getHeight() {
        return height;
    }

    public void setHeight(Integer height) {
        this.height = height;
    }
    public Integer getWidth() {
        return width;
    }

    public void setWidth(Integer width) {
        this.width = width;
    }
    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "GovGoodsImage{" +
        "id=" + id +
        ", imageUrl=" + imageUrl +
        ", lang=" + lang +
        ", height=" + height +
        ", width=" + width +
        ", type=" + type +
        "}";
    }
}
